$(function(){
	$("#send").click(function (e) {
		var mail = {};
		mail.to = $("#input-to").val();
		mail.cc = $("#input-cc").val();
		mail.subject = $("#input-subject").val();
		mail.body = $("#input-body").val();

		$.ajax({
			url:"/ThinkPHP/index.php/Home/Mail/send",
			data: mail,
			dataType: "json",
			type: "post",
			success: function(data) {

			}
		})
	});

}); 